com.atlassian.jira.rpc.soap.service
Class IssueRetriever

java.lang.Object
  extended by com.atlassian.jira.rpc.soap.service.IssueRetriever

 class IssueRetriever
extends java.lang.Object

Simply helps to retrieve issue objects and possible their parent


Nested Class Summary
(package private) static class IssueRetriever.IssueInfo
           
 
Field Summary
private  IssueManager issueManager
           
private  PermissionManager permissionManager
           
 
Constructor Summary
IssueRetriever(IssueManager issueManager, PermissionManager permissionManager)
           
 
Method Summary
(package private)  IssueRetriever.IssueInfo retrieveIssue(Issue issue, User user)
          Retrieve a single issue info based on the fact we already have an issue
(package private)  IssueRetriever.IssueInfo retrieveIssue(java.lang.Long issueId, User user)
          Retrieve a single issue via it's database id, throwing an exception if the user has no permissions or the issue does not exist
(package private)  IssueRetriever.IssueInfo retrieveIssue(java.lang.String issueKey, User user)
          Retrieve a single issue via it's database id, throwing an exception if the user has no permissions or the issue does not exist
private  Issue retrieveParentIssue(Issue issue, User user)
          Retrieve a single issue via it's database id, throwing an exception if the user has no permissions but not if it does not exist
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

issueManager

private final IssueManager issueManager

permissionManager

private final PermissionManager permissionManager
Constructor Detail

IssueRetriever

public IssueRetriever(IssueManager issueManager,
                      PermissionManager permissionManager)
Method Detail

retrieveIssue

IssueRetriever.IssueInfo retrieveIssue(java.lang.String issueKey,
                                       User user)
                                 throws RemotePermissionException
Retrieve a single issue via it's database id, throwing an exception if the user has no permissions or the issue does not exist

Parameters:
issueKey - the possible issue key
user - the user in play
Returns:
info about the issue including its possible parent
Throws:
RemotePermissionException - if the user cant see the issue in question or it does not exist

retrieveIssue

IssueRetriever.IssueInfo retrieveIssue(java.lang.Long issueId,
                                       User user)
                                 throws RemotePermissionException
Retrieve a single issue via it's database id, throwing an exception if the user has no permissions or the issue does not exist

Parameters:
issueId - the possible issue id
user - the user in play
Returns:
info about the issue including its possible parent
Throws:
RemotePermissionException - if the user cant see the issue in question or it does not exist

retrieveIssue

IssueRetriever.IssueInfo retrieveIssue(Issue issue,
                                       User user)
                                 throws RemotePermissionException
Retrieve a single issue info based on the fact we already have an issue

Parameters:
issue - the issue id
user - the user in play
Returns:
info about the issue including its possible parent
Throws:
RemotePermissionException - if the user cant see the issue in question or it does not exist

retrieveParentIssue

private Issue retrieveParentIssue(Issue issue,
                                  User user)
                           throws RemotePermissionException
Retrieve a single issue via it's database id, throwing an exception if the user has no permissions but not if it does not exist

Parameters:
issue - the possible child issue
user - the user in play
Returns:
an issue or null if its not a sub issue
Throws:
RemotePermissionException - if the user cant see the parent issue in question